﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Entity;

public partial class Pages_OrderInfo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["loginClient"] != null)
        {
            Customer cus = (Customer)Session["loginClient"];
            if (cus.C_Status)
            {
                ASPxGridView1.DataSource = new OrderBillUI().GetByCus(cus.Cusid);
                ASPxControlsFormat.ASPxGridFormat(ASPxGridView1);
                ASPxGridView1.DataBind();
            }
            else
            {
                Response.Redirect("../Pages/AccountLock.aspx");
            }
        }
        else
        {
            Response.Redirect("../Pages/Login.aspx");
        }
    }
}
